<template>
	<view class="nav-content">
		<view class="type-box">
		</view>
		<scroll-view class="scroll" :scroll-y="true">
			<view class="list-item" v-for="item in 10">
				<view class="title">
					<text class="one-line">UI设计师设计师设计师设计师设计师设计师设计师设计师设计师设计师设计师</text>
					<text class="num">4-8K</text>
				</view>
				<view class="p">
					<text>健美元素</text>
					<text>未融资</text>
				</view>
				<view class="p">
					<view class="tag">武昌区水果湖</view>
					<view class="tag">3-5年</view>
					<view class="tag">大专</view>
				</view>
				<view class="fj-b">
					<view class="left">
						<image src="@/static/img/chat/pic.jpg" mode="" class="img"></image>
						<text class="name">向先生</text>·
						<text class="name">人力行政经理</text>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script setup lang="ts">
	import { toRefs } from 'vue';
	const props = defineProps({
		list: {
			type: Object,
			default(rawProps) {
				return []
			}
		},
	})
	const { list } = toRefs(props);
</script>

<style scoped lang="scss">
	.nav-content {
		margin-top: -30rpx;
		border-radius: 30rpx 30rpx 0 0;
		overflow: hidden;
	}

	.type-box {
		width: 100%;
		height: 42rpx;
		display: flex;
		background: #ffffff;
		align-items: center;

		.item {
			margin: 0 32rpx;
			padding: 32rpx 0;
			font-size: 30rpx;
			color: #5a5a5a;
		}

		.item.active {
			font-size: 34rpx;
			color: #000000;
			position: relative;
		}

		.item.active::after {
			content: "";
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 10rpx;
			border-radius: 5rpx;
			background: #1872ff;
		}
	}

	.scroll {
		height: calc(100vh - 300rpx - 100rpx);

		.list-item {
			width: 100%;
			padding: 18rpx 30rpx 30rpx 30rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);

			.title {
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 34rpx;
				color: #1C1C1C;
				font-weight: bold;
				margin-bottom: 10rpx;

				.num {
					font-weight: normal;
					flex-shrink: 0;
					font-size: 36rpx;
					color: #1872FF;
				}
			}

			.p {
				font-size: 28rpx;
				color: #5A5A5A;
				margin-bottom: 20rpx;

				text {
					margin-right: 20rpx;
				}

				text:last-child {
					margin-right: 0;
				}
			}

			.tag {
				display: inline-flex;
				align-items: center;
				vertical-align: middle;
				padding: 0 16rpx;
				height: 50rpx;
				background: #F6F6F6;
				border-radius: 8rpx 8rpx 8rpx 8rpx;
				font-size: 24rpx;
				color: #676767;
				margin-right: 14rpx;
				margin-bottom: 14rpx;
			}

			.img {
				width: 52rpx;
				height: 52rpx;
				border-radius: 8rpx 8rpx 8rpx 8rpx;
				margin-right: 18rpx;
				vertical-align: middle;
			}

			.name {
				font-weight: bold;
				font-size: 28rpx;
				color: #111111;
			}

			.fj-b {
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
		}
	}
</style>